Hi Team, I'm facing issue while using Flytekit on ...
# flyte-deployment
f
Hi Team, I'm facing issue while using Flytekit on Ubuntu Failed with Exception class 'keyring.errors.InitError' Reason: Failed to create the collection: Prompt dismissed.. Traceback: /flyte-env/lib/python3.8/site-packages/keyring/backends/SecretService.py", line 62, in get_preferred_collection collection = secretstorage.get_default_collection(bus) /lib/python3.8/site-packages/secretstorage/collection.py", line 179, in get_default_collection return create_collection(connection, 'Default', 'default', session) /lib/python3.8/site-packages/secretstorage/collection.py", line 159, in create_collection raise PromptDismissedException('Prompt dismissed.') Can anyone please help me to resolve the issue?
👍 1
a
@faint-vr-45128 can you share bit more details of your environment? and also, what your code look like? are you using poetry?
c
In python, what does the following give for you?
Copy code
>>> import keyring
>>> keyring.get_keyring()
You might be able to suppress this (you won't be able to cache tokens) with
Copy code
export PYTHON_KEYRING_BACKEND=keyring.backends.null.Keyring
f
I prefer installing keyring.alt package on most Linux based systems
It will store the token in a file
f
@cool-lifeguard-49380 I'm getting below details -
f
@faint-vr-45128 can you please pip install keyring.alt
f
@freezing-airport-6809 Installed
Hi @freezing-airport-6809 I'm still facing the same error message
image.png
Hi @freezing-airport-6809 and @cool-lifeguard-49380 , I'm getting below error message, can you please assist me if possible -
Copy code
Failed with Exception <class 'RuntimeError'> Reason:
Failed to get signed url for script_mode.tar.gz, reason: SYSTEM:Unknown: error=None, cause=<_InactiveRpcError of RPC that terminated with:
        status = StatusCode.UNAVAILABLE
        details = "failed to connect to all addresses; last error: UNKNOWN: ipv4:<ip_add>: Failed to connect to remote host: connect: Connection refused (111)"
        debug_error_string = "UNKNOWN:Error received from peer  {grpc_message:"failed to connect to all addresses; last error: UNKNOWN: ipv4:<ip_add>: Failed to connect to remote host: connect: Connection refused (111)", grpc_status:14, created_time:"2024-07-30T04:59:11.199437998+00:00"}"
f
you are unable to connect to remote host
what is the url of s3 etc?
i cannot help, this is something in your configuration
c
Did you set the domain of your deployment in youf
~/.flyte/config.yaml
?
f
@faint-vr-45128 can you share your config.yaml?
f
I checked internally, and the config file I'm using is correct.
c
Does the domain you configured start with
dns:///
and has somebody else in your org with the same config a working setup?
f
Yes @cool-lifeguard-49380
c
Without further information I can’t really help then, sorry 😕
f
@faint-vr-45128 try using pyflyte info
The error is pretty clear it cannon connect to the address